package com.qianzhu8.kfc.boot.request;

import com.qianzhu8.kfc.boot.constant.HttpMethodConstants;
import com.qianzhu8.kfc.boot.response.PagedQueryKfcOrdersResponse;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 分页查询肯德基订单 request
 *
 * @author xuyanjun
 * @date 2020/4/21
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class PagedQueryKfcOrdersRequest extends BaseRequest<PagedQueryKfcOrdersResponse>{

    /**
     * 分页页码，从1开始
     */
    private Integer pageIndex;

    /**
     * 每页大小
     */
    private Integer pageSize;

    /**
     * 最后更新时间开始时间
     */
    private String updateTimeBeginTime;

    /**
     * 最后更新时间结束时间
     */
    private String updateTimeEndTime;

    /**
     * action
     */
    @Override
    public String getAction() {
        return "/openApi/v1/kfcOrders/pagedQuery";
    }

    /**
     * method
     */
    @Override
    public String getMethod() {
        return HttpMethodConstants.POST;
    }


    /**
     * responseClass
     *
     * @return responseClass
     */
    @Override
    public Class<PagedQueryKfcOrdersResponse> getResponseClass() {
        return PagedQueryKfcOrdersResponse.class;
    }
}
